home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / map_mapping < prev    next >
Text File  |  2001-04-06  |  1KB  |  35 lines

  1. DEPRECATED
  2. SYNOPSIS
  3.         mapping map_mapping(mapping m, string func, string|object ob, ...)
  4.         mapping map_mapping(mapping m, closure cl, ...)
  5.  
  6. DESCRIPTION
  7.         ob->func() is called resp. cl applied to every element in the mapping,
  8.         with the key of the element as first argument, and then the extra args
  9.         that were given to map_mapping (these args must not be protected
  10.         references like &(i[0])).  The data item in the mapping is replaced by
  11.         the return value of the function. ob can also be a file_name of an
  12.         object.
  13.  
  14.         If <ob> is omitted, or neither a string nor an object, it
  15.         defaults to this_object().
  16.  
  17.         Note that if mapping m has more than one value per key, these
  18.         are ignored: the resulting mapping always has one value per key.
  19.  
  20.         Also note that the behaviour of this function is different from
  21.         map_array().
  22.  
  23. EXAMPLE
  24.         m = mkmapping(users());
  25.         m = map_mapping(m, #'environment);
  26.  
  27. HISTORY
  28.         In LDMud 3.2.6 renamed to map_indices().
  29.         Since LDMud 3.2.9, not available if driver is compiled without
  30.           USE_DEPRECATED.
  31.  
  32. SEE ALSO
  33.         map(E), filter(E), filter_indices(E), walk_mapping(E), member(E),
  34.         m_contains(E)
  35.